package com.sunwayhorizo.health.hl7.persistent.pk;

import java.io.Serializable;

public class RimCorePK implements Serializable {
    public Long systemId;
    public Long versionNum;

    public RimCorePK() {
    }

    public RimCorePK(Long actId, Long actVersionNum) {
        this.systemId = actId;
        this.versionNum = actVersionNum;
    }

    public boolean equals(Object other) {
        if (other instanceof RimCorePK) {
            final RimCorePK otherActsPK = (RimCorePK) other;
            final boolean areEqual = (otherActsPK.systemId.equals(systemId) && otherActsPK.versionNum.equals(versionNum));
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }
}
